 <include file="application/home/view/public/header.html"/>
      <!-- /.aside -->
      <section id="content">
        <section class="vbox">
          <section class="scrollable padder">
             <header class="header bg-light bg-gradient b-b">
            <p>修改资料</p>
          </header>
          <form class="form-horizontal" data-validate="parsley">
                <section class="panel panel-default">
                    <div class="panel-body">
                    <header class="panel-heading"> <strong>个人信息修改</strong> </header>
                      <div class="form-group">
                        <label class="col-sm-3 control-label">用户名：</label>
                        <div class="col-lg-4">
                          <input type="text" id="account" value="{$member.loginName}" class="form-control" id="inputEmail12" placeholder="admin" disabled>
                        </div>
                      </div>
                      <div class="line line-dashed line-lg pull-in"></div>
                      <div class="form-group">
                        <label class="col-sm-3 control-label">真实姓名：</label>
                        <div class="col-lg-4">
                          <input type="text" id="name" value="{$member_relation.name}" class="form-control " id="inputEmail12" disabled>
                        </div>
                      </div>
                      <div class="line line-dashed line-lg pull-in"></div>
                      <div class="form-group">
                        <label class="col-sm-3 control-label">身份证：</label>
                        <div class="col-lg-4">
                          <input type="text" id="idcard" value="{$member_relation.idcard}" class="form-control" id="inputEmail12" disabled>
                        </div>
                      </div>
                      <div class="line line-dashed line-lg pull-in"></div>
                      <div class="form-group">
                        <label class="col-sm-3 control-label">电话号码：</label>
                        <div class="col-lg-4">
                          <input type="text" id="phone" value="{$member_relation.phone}" class="form-control" id="inputEmail12" disabled>
                        </div>
                      </div>
                      <div class="line line-dashed line-lg pull-in"></div>
                      <div class="form-group">
                        <label class="col-sm-3 control-label">性别：</label>
                        <div class="col-lg-4">
                          <label class="radio-inline" style=" margin-left:7px;">
							<input type="radio" name="sex"  value="1" <eq name="member_relation['sex']" value='1'>checked</eq>> 男 </label>
							<label class="radio-inline">
							<input type="radio" name="sex"  value="2" <eq name="member_relation['sex']" value='2'>checked</eq>> 女 </label>	
                        </div>
                      </div>
                      <hr>
                      <header class="panel-heading"> <strong>支付信息修改<span style=" color:red; font-size:13px; padding-left:10px;">(提交后将再不能修改，请谨慎填写!)</span></strong> </header>
                      <div class="line line-dashed line-lg pull-in"></div>
                      <div class="form-group">
                        <label class="col-sm-3 control-label">支付宝账号：</label>
                        <div class="col-lg-4">
                          <input type="text" id="zhifubao" name="zhifubao" <notempty name="member_relation.zhifubao">disabled value="{$member_relation.zhifubao}"</notempty> class="form-control" id="inputEmail12" placeholder="">
                        </div>
                      </div>
                      <div class="line line-dashed line-lg pull-in"></div>
                      <div class="form-group">
                        <label class="col-sm-3 control-label">银行卡号：</label>
                        <div class="col-lg-4">
                          <input type="text" id="bank_card" name="bank_card" <notempty name="member_relation.bank_card">disabled value="{$member_relation.bank_card}"</notempty> class="form-control" id="inputEmail12" placeholder="">
                        </div>
                      </div>
                      <div class="line line-dashed line-lg pull-in"></div>
                      <div class="form-group">
                        <label class="col-sm-3 control-label">开户人：</label>
                        <div class="col-lg-4">
                          <input type="text" id="kaihuren" name="kaihuren" <notempty name="member_relation.kaihuren">disabled value="{$member_relation.kaihuren}"</notempty> class="form-control" id="inputEmail12" placeholder="">
                        </div>
                      </div>
                      <div class="line line-dashed line-lg pull-in"></div>
                      <div class="form-group">
                        <label class="col-sm-3 control-label">开户行：</label>
                        <div class="col-lg-4">
                          <input  type="text" id="kaihuhang" name="kaihuhang" <notempty name="member_relation.kaihuhang">disabled value="{$member_relation.kaihuhang}"</notempty> class="form-control" id="inputEmail12" placeholder="">
                        </div>
                      </div>
                    </div>
                    <footer class="panel-footer text-right bg-light lter">
                      <button type="button" class="btn btn-success btn-s-xs" onclick="sub()" >提 交</button>
                    </footer>
                  </section>
          </form>
          </section>
        </section>
        <a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen" data-target="#nav"></a> </section>
      <aside class="bg-light lter b-l aside-md hide" id="notes">
        <div class="wrapper">Notification</div>
      </aside>
    </section>
  </section>
</section>
<script src="__PUBLIC__/home/js/app.v2.js"></script> <!-- Bootstrap --> <!-- App --> <script src="__PUBLIC__/home/js/charts/easypiechart/jquery.easy-pie-chart.js" cache="false"></script> <script src="__PUBLIC__/home/js/charts/sparkline/jquery.sparkline.min.js" cache="false"></script> <script src="__PUBLIC__/home/js/charts/flot/jquery.flot.min.js" cache="false"></script> <script src="__PUBLIC__/home/js/charts/flot/jquery.flot.tooltip.min.js" cache="false"></script> <script src="__PUBLIC__/home/js/charts/flot/jquery.flot.resize.js" cache="false"></script> <script src="js/charts/flot/jquery.flot.grow.js" cache="false"></script> <script src="__PUBLIC__/home/js/charts/flot/demo.js" cache="false"></script> <script src="__PUBLIC__/home/js/calendar/bootstrap_calendar.js" cache="false"></script> <script src="__PUBLIC__/home/js/calendar/demo.js" cache="false"></script> <script src="__PUBLIC__/home/js/sortable/jquery.sortable.js" cache="false"></script>
<script src="__PUBLIC__/js/layer/layer.js" type="text/javascript"></script>
</body>
</html>
<script type="text/javascript">
		function sub(){
			
			var kaihuren = $("#kaihuren").val();
			var bank_card = $("#bank_card").val();
			var zhifubao = $("#zhifubao").val();
			var kaihuhang = $("#kaihuhang").val();
      var sex = $("input[type='radio']:checked").val();
			var url = "{:U('User/save_member')}";
			$.post(url,{'kaihuren':kaihuren,'bank_card':bank_card,'zhifubao':zhifubao,'kaihuhang':kaihuhang,'sex':sex},function(data){
				if(data.status !=1){
					layer.msg(data.info);		
				}else{
					layer.msg(data.info);
					 setTimeout(function () {
       					location.href="{:U('User/revise_massage')}"
    				}, 2000);
					
				}
			
			});	


    	}

</script>
